package com.smbms.mapper;

import com.smbms.pojo.Role;
import com.smbms.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    User login(@Param("userCode") String userCode,@Param("userPassword") String userPassword);

    Integer getCount(Map<String,Object> map);

    List<User> getUserList(Map<String,Object> map);

    List<Role> getRoleList();

    User checkUserCode(String userCode);

    int userAddSave(User user);

    User userView(Integer userId);

    int modifyUser(User user);

    int deleteUser(Integer userId);
}
